import java.util.*;

public class TimeZoneEntry extends TimeZone{

	private TimeZone tz;
	
	public TimeZoneEntry(TimeZone timeZone) {
		tz = timeZone;
	}
	
	public String getID() {
		return tz.getID();
	}
	
	@Override
	public String toString() {
		String tzString = "[UTC ";
		tzString += tz.getRawOffset() < 0 ? "- " : "+ ";
		tzString += Math.abs(tz.getRawOffset() / (1000*60*60)) % 24;
		tzString += "] " + tz.getDisplayName();
		return tzString;
	}
	
	@Override
	public int getOffset(int era, int year, int month, int day, int dayOfWeek,
			int milliseconds) {
		return tz.getOffset(era, year, month, day, dayOfWeek, milliseconds);
	}

	@Override
	public int getRawOffset() {
		return tz.getRawOffset();
	}

	@Override
	public boolean inDaylightTime(Date date) {
		return tz.inDaylightTime(date);
	}

	@Override
	public void setRawOffset(int offsetMillis) {
		tz.setRawOffset(offsetMillis);
	}

	@Override
	public boolean useDaylightTime() {
		return tz.useDaylightTime();
	}
	
}
